package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class StringConcatenation implements StringValueExpression {

    private int beginIndex;
    private int endIndex;
    private StringValueExpression stringValueExpression;
    private StringFactor stringFactor;

    public StringConcatenation(StringValueExpression stringValueExpression,
                               StringFactor stringFactor) {
        this.beginIndex = stringValueExpression.getBeginIndex();
        this.endIndex = stringFactor.getEndIndex();
        this.stringValueExpression = stringValueExpression;
        this.stringFactor = stringFactor;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public StringValueExpression getStringValueExpression() {
        return stringValueExpression;
    }

    public StringFactor getCharacterOrBlobFactor() {
        return stringFactor;
    }

}
